package com.zhouyu.six;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InjectAutowiredBean {

	/**
	 * 默认是true 可以设置为false 这个bean没初始化也不会报错
	 */
	@Autowired(required = true)
	private InjectInnerAutowiredBean injectInnerAutowiredBean;

	public void test(){
		System.out.println(injectInnerAutowiredBean);

	}


	@Autowired
	public void a(){
		System.out.println("aaa");
	}

}
